#ifndef  _USART_H
#define  _USART_H


#include "SysConfig.h"
#define BaudRate	 				115200

#define USART              	 		USART1
#define USART_RCC         	 		RCC_APB2Periph_USART1

#define USART_GPIO_RCC    			RCC_AHBPeriph_GPIOB
#define USART_TX_GPIO_PinSource		        	GPIO_PinSource6
#define USART_RX_GPIO_PinSource		        	GPIO_PinSource7	
#define USART_TX		       		 	GPIO_Pin_6	// out
#define USART_RX		       		 	GPIO_Pin_7	// in 
#define USART_GPIO_PORT    				GPIOB   

extern  uint16_t   DataPack;
extern  uint8_t    FlagHand_OK;
extern  uint8_t   Data_Receive[8];
extern  uint8_t   Data_Transmit[8];
extern  uint16_t   Cmd_Array[8];
void USART1_Config(void);
void USART_Send(uint8_t* Buf, uint16_t len);
#endif
